<template>
<div>
    <van-nav-bar
            :title="$route.meta.title"
            right-text="....."
            left-arrow
            @click-left="onClickLeft"
    />
</div>
</template>

<script>
export default {
  name: 'Navbar',
  methods: {
    // 点击，返回上一页
    onClickLeft() {
      // console.log(this.$router)
      this.$router.back() // 编程式的导航
    },
  },
}

</script>

<style lang="less" scoped>
/deep/.van-nav-bar .van-icon {
  color: grey;
}
/deep/.van-nav-bar__text{
  color: grey;
}
</style>
